<?php

namespace Common\Bundle\LibraryBundle\Tests\Entity;

use Common\Bundle\LibraryBundle\Entity\Evaluation;
use Symfony\Component\Config\Definition\Builder\ValidationBuilder;
use Common\Bundle\LibraryBundle\Form\EvaluationType;


class EvaluationTest extends \PHPUnit_Framework_TestCase{

    protected $evaluation;

    public function setUp()
    {
        parent::setUp();

        $this->evaluation = new Evaluation();
    }

    public function testSetEtGetDescription()
    {
        $this->evaluation->setDescription("Perfect!");
        $this->assertEquals("Perfect!",  $this->evaluation->getDescription());
    }

    public function testSetEtGetTrancheInf()
    {
        $this->evaluation->setTrancheInf(10);
        $this->assertEquals(10,  $this->evaluation->getTrancheInf());
    }

    public function testSetEtGetTrancheSup()
    {
        $this->evaluation->setTrancheSup(10);
        $this->assertEquals(10,  $this->evaluation->getTrancheSup());
    }


} 